package com.yixiang.np.service;

import java.util.List;

import com.yixiang.np.model.PageFilter;
import com.yixiang.np.model.SessionInfo;
import com.yixiang.np.model.po.Dictionary;
import com.yixiang.np.model.po.User;
import com.yixiang.np.model.vo.RegVo;
import org.apache.ibatis.annotations.Param;

/**
 * Created by LiZhengYong on 2016/6/16.
 */
public interface UserServiceI {

	public List<User> dataGrid(User user, PageFilter ph);

	public Long count(User user, PageFilter ph);

	public void add(User user);

	public void delete(Long id);

	public void edit(User user);

	public User get(Long id);

	public User login(User user);

	public List<String> resourceList(Long id);

	public boolean editUserPwd(SessionInfo sessionInfo, String oldPwd, String pwd);

	public User getByLoginName(User user);
	
	public List<Dictionary> combox(String roleId);
	
	public void regUser(RegVo reg);
	
	public void regSupplierUser(RegVo reg);
	
	public void operatorAdd(RegVo reg, Long orgId);
	
	public void resetPwd(String id,String password);
	
	public int getOperatorCountByOrg(Long orgId);
	
	public List<User> getUserByOrgid(Long orgId);

	List<RegVo> selectNoAudit(String username,String nickname,
							  String company,String contact,
							  Integer state,Integer ownerId);

	void auditSucess(Integer id,Integer state,String remark);
	RegVo selectInfoById(Integer id);

}
